﻿@inherits DrawerTemplate<int, bool>

<Form Loading="@_formIsLoading"
      Model="@_editModel"
      LabelCol="new ColLayoutParam { Span = 8 }"
      WrapperCol="new ColLayoutParam { Span = 16 }"
      OnFinish="OnFormFinish"
      Context="model">
    <FormItem Label="车牌号">
        <Input @bind-Value="@model.ShieldNumber" />
    </FormItem>
    <FormItem Label="限制类型">
        <RadioGroup @bind-Value="@(model.ShieldType)">
            @foreach (var gitem in EnumExtension.EnumToDictionary<ShieldType>())
            {
                <Radio Value="@(gitem.Key)">@gitem.Value</Radio>
            }
        </RadioGroup>
    </FormItem>
    <FormItem WrapperCol="new ColLayoutParam { Offset = 4, Span = 20 }">
        <Button Type="@ButtonType.Primary" HtmlType="submit">
            保存
        </Button>
        <Button OnClick="OnFormCancel">
            取消
        </Button>
    </FormItem>
</Form>